Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nat46-core: Drop packet with non-IPv4-translatable IPv6 address #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srsmiraato
Copy link

RFC6145 Section 5.2 discussed about non-IPv4-translatable
IPv6 addresses on the IPv6 headers, and left the solution
for stateless translation as future work. RFC6791 has
recommendations for this issue, but until that's implemented,
silently drop the packet.

RFC6145 Section 5.2 discussed about non-IPv4-translatable
IPv6 addresses on the IPv6 headers, and left the solution
for stateless translation as future work. RFC6791 has
recommendations for this issue, but until that's implemented,
silently drop the packet.
@ayourtch
Copy link
Owner

Which problem does this solve ? When implementing this, I found that putting in a bogus address helps recover more problematic situation than just dropping the packet.

@srsmiraato
Copy link
Author

Hi, the decision to silently drop the packet was based on RFC792, which did not require or made it mandatory to send ICMP error messages. RFC6791 Section 3.1 also stated that the "source address used should not cause the ICMP packet to be discarded". This happened in our scenario, where the receiver of the ICMP packet discarded it.

But I'm very interested to know of these problematic situations you mentioned. Maybe our system hasn't encountered those scenarios yet. I would appreciate if you can provide details on these problematic situations. Thanks.

@ayourtch
Copy link
Owner

ayourtch commented Oct 2, 2020

The two scenarios I remember about (alas it was probably 10 years ago :) were the PMTUD and traceroute when debugging.
Also, there is another rationale: even if the receiver of the ICMP message discards it, if you for whatever reason begin to troubleshoot the network issue, you will see this ICMP packet in the packet capture, which may give you a help as to the nature of the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants